package demo2;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        PlayCard playCard = new PlayCard();
        //买牌
        List<Card> list = playCard.buyCards();
        System.out.println(list);
        //洗牌
        playCard.shuffle(list);
        System.out.println(list);
        //发牌
        List<List<Card>> list3 = playCard.deal(list);
        for (int i = 0; i < 3; i++) {
            System.out.println(list3.get(i));
        }
    }
}
